#include "CVideoDescriptor.h"


CVideoDescriptor::CVideoDescriptor(void):IDescriptorData(DESCRIPTOR_TAG_VEDIO)
, VideoType(0)    	
, AudioType(0) 
, VideoPid(0)
, AudioPid(0)
, PcrPid(0)
{	
}

CVideoDescriptor::~CVideoDescriptor(void)
{
}

void CVideoDescriptor::GetData(BYTE* buff  , int &len)
{
	CBuffer stBuffer(buff, DESCRIPTOR_MAXLEN);

	PACK_DESCRIPTOR_BUFFER_START(stBuffer, DESCRIPTOR_TAG_ADVERTISEMENT);

	stBuffer.Write(VideoType);;
	stBuffer.Write(AudioType);
	stBuffer.Write(VideoPid);
	stBuffer.Write(AudioPid);
	stBuffer.Write(PcrPid);

	len = PACK_DESCRIPTOR_BUFFER_END(stBuffer);
}